package cn.webrx;

import java.util.Date;

public class C1 {

    //idea alt + 7 查看类对象的结构
    String address = "郑州";

    final static public String NAME = "ok";

    int a = 6;


    int a1 = 10;
    private int a2 = 20;
    protected int a3 = 30;
    public int a4 = 40;


    /* main 方法*/
    public static void main(String[] args) {
        final int AA = 55;

        C1 c = new C1();
        System.out.println(c.a1);
        System.out.println(c.a2);
        System.out.println(c.a3);
        System.out.println(c.a4);

        //给属性赋值，通过实例对象赋值
        c.a = 100;

        System.out.println(c.a); //100

        //c.pf(2340); //100
        System.out.println(c.pf(5));
    }


    //属性
    int i;
    int b = 3;


    //方法
    int pf(int f) {
        int aaa;

        System.out.println(a);


        //name = "李四";
        return 0;
    }


}



